-- GENERATED SPELL FOR [Blightblood Troll] --


function spell0_28931(pUnit, Event) --@Blightblood Infusion,n/a--
pUnit:FullCastSpellOnTarget(54136,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28931', 5000, 1)
end

function spell1_28931(pUnit, Event) --@Concussion Blow,n/a--
pUnit:FullCastSpellOnTarget(54132,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28931', 5000, 1)
end

function spell2_28931(pUnit, Event) --@Powerful Strike,n/a--
pUnit:FullCastSpellOnTarget(54135,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28931', 0, 1)
end

function Sorts_28931(pUnit, Event)
local choix_sorts_28931 = math.random(0, 2)
if choix_sorts_28931 == 0 then
pUnit:RegisterEvent('spell0_28931', 1, 1)
end
if choix_sorts_28931 == 1 then
pUnit:RegisterEvent('spell1_28931', 1, 1)
end
if choix_sorts_28931 == 2 then
pUnit:RegisterEvent('spell2_28931', 1, 1)
end
end

function mob28931_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28931', math.random(1500, 3000), 1)
end

function mob28931_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28931_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28931_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28931, 1, 'mob28931_Action')
RegisterUnitEvent(28931, 2, 'mob28931_Leave')
RegisterUnitEvent(28931, 3, 'mob28931_Kill')
RegisterUnitEvent(28931, 4, 'mob28931_Die')
